package com.yike.user.api.service;

import com.yike.user.api.service.hystrix.ShopFeignHystrix;
import com.yike.user.api.vo.ShopFeignVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(value = "user-service", fallback = ShopFeignHystrix.class)
public interface ShopFeignService {

    @GetMapping("/feign/shop/getShop")
    ShopFeignVo getShop(@RequestParam("shopId") Long shopId);
    @GetMapping("/feign/shop/getShopDetails")
    Map<String ,Object> getShopDetails(@RequestParam("shopId") Long shopId);

}
